# -*- coding: utf-8 -*-
"""
 @Time    : 2021/2/24 下午3:33
 @Author  : tgy
 
"""

#1. 继承
class Person:

    def run(self):
        print('12323')


class Student(Person):
    ...



# 2. 通过一个工具函数
def add(claz):

    def eat(self):
        print('eat')

    claz.eat = eat



def test01():
    ...
    add(Student)
    student = Student()
    student.eat()






if __name__ == '__main__':
    ...
    test01()